package br.edu.unifei.cct810.trabalho01.gui.componentes;

import javax.swing.JMenuItem;

import br.edu.unifei.cct810.trabalho01.patterns.Command;
import br.edu.unifei.cct810.trabalho01.patterns.Mediator;

public class JMenuItemVerificarToken extends JMenuItem implements Command{

	private Mediator med;
	
	public JMenuItemVerificarToken(String title, Mediator m){
		this.setText(title);
		this.med = m;
	}
	
	@Override
	public void execute() {
		med.verificarToken();
	}

	@Override
	public void validar() {}
}
